package com.xiaoxu.intranetweb.mybatisplusSzappdb.controller.paramSetting;

import com.xiaoxu.intranetweb.util.SzResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/paramSetting")
public class paramSettingController {
@Autowired
private com.xiaoxu.intranetweb.mybatisplusSzappdb.business.paramSetting.ParamBu ParamBu;

//获取所有系统参数
    @GetMapping("/getSysDic")
    public SzResult getSysDic() {
        return ParamBu.getSysDic();
    }



    //是否开启充值一级审批
    @GetMapping("/financeApprove")
    public SzResult financeApprove(@RequestParam String financeApproveStatus) {
        return ParamBu.financeApprove(financeApproveStatus);
    }
    //是否开启充值二级审批
    @GetMapping("/financeApprove2")
    public SzResult financeApprove2(@RequestParam String financeApproveStatus2) {
        return ParamBu.financeApprove2(financeApproveStatus2);
    }
}
